﻿using System;

class IntegerDivision
{
    static void Main()
    {
        int i;

        Int32.TryParse(Console.ReadLine(), out i);
        if (((i % 7) == 0) && ((i % 5) == 0))
        {
            Console.WriteLine("The number {0} is divisible by 7 and 5 without remainder.", i);
        }
        else
        {
            Console.WriteLine("The number {0} is divisible by 7 and 5 with remainder.", i);
        }
    }
}